package com.dsx.haha.model.entity;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author dsx
 * @date 2021/3/12 10:18
 * @since JDK1.8
 */
@Table(name = "tenant_user")
public class TenantUser implements Serializable {
    private String id;
    private String tenantId;
    private String userId;
    private Date createTime;

    public TenantUser(String id, String tenantId, String userId, int isAdmin, Date createTime) {
        this.id = id;
        this.tenantId = tenantId;
        this.userId = userId;
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "TenantUser{" +
                "id='" + id + '\'' +
                ", tenantId='" + tenantId + '\'' +
                ", userId='" + userId + '\'' +
                ", createTime='" + createTime + '\'' +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }



    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public TenantUser() {
    }
}
